package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import com.zzyl.entity.ProjectPlans;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Description NursingPlanMapper
 * @Author Wen Jie
 * @Date 2024-09-06
 */
@Mapper
public interface NursingPlanMapper {

    List<NursingPlan> getAll();



    void addNursingPlan(NursingPlanVo nursingPlan);

    Page<NursingPlan> getPage(String name, Integer status);

    NursingPlan getById(Long id);

    void addNursingPlanProject(List<ProjectPlans> projectPlans);

    void updateNursingPlan(NursingPlanVo nursingPlanVo);

    void deletePlanProjectById(Long planId);

    void deleteById(Long id);

    void updateStatusById(Long id, Integer status);

    int countById(Long id);

    int getStatusById(Long id);
}
